<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Student Information</title>
    <!-- Bootstrap CSS -->
    <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container mt-5">
    <h1>Student Information</h1>
    <div th:if="${student != null}" class="card">
        <div class="card-body">
            <h5 class="card-title">Student Information</h5>
            <p class="card-text">Name: <span th:text="${student.name}"></span></p>
            <p class="card-text">Age: <span th:text="${student.age}"></span></p>
            <p class="card-text">Grade: <span th:text="${student.id}"></span></p>
        </div>
    </div>
    <div th:if="${student == null}">
        <p>Error fetching student information.</p>
    </div>
</div>

<!-- Bootstrap JS and jQuery -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>
